package getproperties.ByEnvironment;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;

/**
 * @Description
 * @Author zhoucq
 * @Date 2025/9/28 19:14
 * @Version 1.0
 */
@Controller
public class Demo04 {
    @Autowired
    private static Environment env;
    public static void main(String[] args) {
        String value = env.getProperty("zhouwen.redisson.timeout");
        System.out.println(value);
    }
}
